package gof_003_行为型_Behavioral.gof_004_策略_Strategy.gof_002_Strategy;

public class Strategy_2 implements Strategy{
    @Override
    public boolean condition(Student student) {
        //策略2 年龄大于20并且小于等于23
        boolean b = student.getAge()>20 && student.getAge()<=23;
        return b;
    }
}
